﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.VLine.Result
{
    public class ExperScoreMain
    {
        public int wm_id { get; set; }
        /// <summary>
        ///  用户id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        ///  用户名
        /// </summary>
        public string user_name { get; set; }
        public int file_id { get; set; }
        /// <summary>
        ///  作品名称
        /// </summary>
        public string file_name { get; set; }
        /// <summary>
        ///  作品代码
        /// </summary>
        public string file_code { get; set; }
        /// <summary>
        ///  总时长
        /// </summary>
        public int em_time { get; set; }
        /// <summary>
        ///  总得分
        /// </summary>
        public decimal score { get; set; }
        /// <summary>
        ///  正确率
        /// </summary>
        public decimal accuracy { get; set; }
        /// <summary>
        ///  正确数
        /// </summary>
        public int okNum { get; set; }
        /// <summary>
        ///  错误数
        /// </summary>
        public int errorNum { get; set; }


        /// <summary>
        ///  进入时间
        /// </summary>
        public string in_date { get; set; }
        /// <summary>
        ///  退出时间
        /// </summary>
        public string out_date { get; set; }
        public string file_note { get; set; }
        /// <summary>
        ///  所属导航目录
        /// </summary>
        public string folder_name { get; set; }
    }
    public class ExperScoreResult: ExperScoreMain
    {
        /// <summary>
        ///  明细
        /// </summary>
        public List<ExperScoreDetial> detial { get; set; }
        /// <summary>
        ///  缩略图列表
        /// </summary>
        public List<FilePicList> picture { get; set;}
    }
    public class ExperScoreDetial
    {
        public int file_id { get; set; }
        /// <summary>
        ///  用户id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        ///  关卡代码
        /// </summary>
        public string folder_code { get; set; }
        /// <summary>
        ///  关卡名称
        /// </summary>
        public string folder_name { get; set; }
        /// <summary>
        ///  题号
        /// </summary>
        public int num { get; set; }
        /// <summary>
        ///  题目内容
        /// </summary>
        public string content { get; set; }
        /// <summary>
        ///  正确答案
        /// </summary>
        public string answer { get; set; }
        /// <summary>
        ///  选择答案
        /// </summary>
        public string sel_result { get; set; }
        /// <summary>
        ///  题目解析
        /// </summary>
        public string parse { get; set; }
        /// <summary>
        ///  状态【0：错误；1：正确】
        /// </summary>
        public int status { get; set; }
        /// <summary>
        ///  得分
        /// </summary>
        public decimal score { get; set; }
        /// <summary>
        ///  答题时长
        /// </summary>
        public int em_time { get; set; }
        /// <summary>
        ///  本题时长
        /// </summary>
        public int wm_time { get; set; }
        /// <summary>
        ///  创建时间
        /// </summary>
        public string create_date { get; set; }
    }

    //体验成绩统计
    public class ExperScoreStatist
    {
        /// <summary>
        ///  关卡代码
        /// </summary>
        public string folder_code { get; set; }
        /// <summary>
        ///  关卡名称
        /// </summary>
        public string folder_name { get; set; }
        /// <summary>
        ///  题号
        /// </summary>
        public int num { get; set; }
        /// <summary>
        ///  题目内容
        /// </summary>
        public string content { get; set; }
        /// <summary>
        ///  正确答案
        /// </summary>
        public string answer { get; set; }
        /// <summary>
        ///  题目解析
        /// </summary>
        public string parse { get; set; }
        /// <summary>
        ///  正确数
        /// </summary>
        public int result_ok { get; set; }
        /// <summary>
        ///  错误数
        /// </summary>
        public int result_error { get; set; }
        /// <summary>
        ///  正确率
        /// </summary>
        public decimal accuracy { get; set; }
    }

    /// <summary>
    ///  缩略图列表模型
    /// </summary>
    public class FilePicList
    {
        /// <summary>
        ///  缩略图id
        /// </summary>
        public int bag_id { get; set; }
        /// <summary>
        ///  缩略图展示类别
        /// </summary>
        public int file_type { get; set; }
        /// <summary>
        ///  缩略图地址
        /// </summary>
        public string file_url { get; set; }
    }
}